#include "ftptargetadapter.h"

FTPTargetAdapter::FTPTargetAdapter(QString host, QString user, QString password, QString dir)
{
    server = new QFtp();
    server->setTransferMode(QFtp::Passive);
    server->connectToHost(host);
    server->login(user, password);
    server->cd(dir);
}

FTPTargetAdapter::~FTPTargetAdapter()
{
    server->close();
    delete server;
}

void FTPTargetAdapter::prepare()
{
    QString tempDir = "C:/Temp/";
    QFile *table = new QFile();
    //server->get();
}

void FTPTargetAdapter::copy()
{

}

void FTPTargetAdapter::finalize()
{
}
